<?php
		$curCon = $con[$whichCon];
        	$curNick = $myNick[$whichCon];
                //Sets $new to the resource that next gets new data, and $whichCon to # of connection
//              echo $whichCon.":".stream_get_line($new, 2048)."\n";
                $text = $curCon->getData();
                if (!empty($text))
                {
                	echoMsg($text);
                        $parse->setText($text);
                       	$userData = $parse->getUserData();
			$userCmd = $parse->getUserCmd();

                        switch ($parse->getServer())
			{
				case 'PING':
					$curCon->sendRaw('PONG '. $parse->getPingBack());
					break;
				default:
					switch ($parse->getCmd())
					{
						case 'NOTICE':
						case 'PRIVMSG':
							include(INCLUDES . 'module.inc.php');
							break;
						case '':
							break;
						default:
							break;
					}
                        }
		}
?>
